<?php

declare(strict_types=1);

/**
 * 接口路由
 */

use Hyperf\HttpServer\Router\Router;

Router::addServer('ws', function () {
    Router::addGroup('/MicroWebSocket', function () 
    {
        //云仓 商品优选
        Router::get('/CommodityOptimization', 'App\Controller\Ws\CommodityOptimizationController');
    });
    
    Router::addGroup('/ChannelWebSocket', function () 
    {
        //BBC WEB SOCKET 服务
        Router::get('/ChannelWebSocketSerice', 'App\Controller\Ws\ChannelWsServiceController');
    });
});

//默认favicon.io
Router::get('/favicon.ico', function () {
    return '';
});
